define(function(require, exports, module) {

    "use strict";
    require("mui");
	require("jquery");
    require("common");
	var abpdata = require("abpinit");
	var abp = abpdata.abpstart;
	require('http://g.alicdn.com/ilw/ding/0.8.9/scripts/dingtalk.js');
	//钉钉返回清除缓存
	var dingTalkNav = require('dd_config');
	//钉钉右边按钮操作
	dingTalkNav.RightNavBar(false, "新增", "default");
	
	
	
	mui.init({
		swipeBack: true, //启用右滑关闭功能
	});
	$(function(){
		function clearSessionDDHome() {
			document.location.href = "../../src/index.html?dd_nav_bgcolor=FFFF943E";
		}
		//ios
		dingTalkNav.LeftNavBar(clearSessionDDHome);
		//ad
		dingTalkNav.leftAndroid(clearSessionDDHome);
		//客服电话
		mui("body").on('tap',"#tel",function() {
			if(mui.os.plus){
				plus.device.dial("4000002900");
			}else{
				location.href = 'tel:4000002900';
			}
		});
		//客服电话
		mui(".helpInfo").on('tap',"a",function() {
			document.location.href = this.href + "?dd_nav_bgcolor=FFFF943E";
		});
	});

});